<template>
  <div class="unit-box" v-if="!childModelShow">
    <div class="unit-exbit-title-box">
      <div class="unit-exbit-title-box-left">
        <textMax
          v-if="store.childModel?.remarks"
          :title="store.childModel.text"
          :color="colorList5[store.styleInfo.colorType - 1].fontColor"
          :data="store.childModel?.remarks"
          :modelData="remarks"
          :maxLen="3"
        />
      </div>
      <div class="unit-exbit-title-box-right-box" v-if="store.childModel.value">
        <img
          class="unit-exbit-title-box-right t-image--fit-cover t-image--position-center"
          :src="urls + store.childModel.value + '?imageView2/1/w/1180/h/320/format/webp'"
          alt=""
          v-if="store.childModel.value"
        />
        <div class="UnitImageNull" v-else>
          <UnitImageNull />
        </div>
      </div>
    </div>
    <div
      class="unit-child-list"
      :class="{
        'background-img-style1': store.styleInfo.colorType == 1,
        'background-img-style2': store.styleInfo.colorType == 2,
        'background-img-style3': store.styleInfo.colorType == 3,
      }"
    >
      <div class="left-ring">
        <!-- cruuent.value == 0
cruuent.value == store.childModel.children.length - 1 -->
        <div class="child-box3-left" :class="{ 'child-ot-null': cruuent == 0 }">
          <arrowLeft
            iconSize="50px"
            @click="addCruuentType(1)"
            :color="colorList5[store.styleInfo.colorType - 1].themeColor"
          />
        </div>
        <div class="child-box3-right" :class="{ 'child-ot-null': cruuent == store.childModel.children.length - 10 }">
          <arrowRight
            @click="addCruuentType(2)"
            iconSize="50px"
            :color="colorList5[store.styleInfo.colorType - 1].themeColor"
          />
        </div>
        <img
          :style="{ transform: `rotate(${cruuent * -30}deg)` }"
          src="https://static.jiyi.show/template/template5/unitRing.png?imageView2/1/w/800/h/800/format/webp"
          alt=""
          class="left-ring-img"
        />
        <div class="scroll-box">
          <div class="scroll-box-list" :style="{ transform: `translateY(${(cruuent - 2) * -160}px)` }">
            <div
              @click="addCruuent(index)"
              v-for="(item, index) in store.childModel.children"
              :key="index"
              class="box-list-item"
              :class="{
                'child-box-arrange0': index - 3 == cruuent,
                'child-box-arrange1': index - 2 == cruuent,
                'child-box-arrange2': index - 1 == cruuent,
                'child-box-arrange3': index == cruuent,
                'child-box-arrange4': index + 1 == cruuent,
                'child-box-arrange5': index + 2 == cruuent,
                'child-box-arrange6': index + 3 == cruuent,
              }"
            >
              <div
                class="box-item-chage"
                :class="{
                  'box-list-item-active': index == cruuent,
                  'box-list-item-null': index !== cruuent,
                }"
              >
                <div
                  v-if="index == cruuent"
                  class="active-chage-border"
                  :style="{ borderColor: index == cruuent ? colorList5[store.styleInfo.colorType - 1].fontColor : '' }"
                ></div>
                <div
                  v-if="index == cruuent"
                  class="active-chage"
                  :style="{ background: index == cruuent ? colorList5[store.styleInfo.colorType - 1].themeColor : '' }"
                ></div>
                <div class="avatar-box-active">
                  <t-avatar
                    size="88px"
                    :image="
                      item.value
                        ? $filters.getLinkUrl(item.value, '?imageView2/0/w/160/h/160/format/webp')
                        : ImgUrlCancat + `/template/template5/templateDefult${store.styleInfo.colorType}.png`
                    "
                  >
                  </t-avatar>
                  <div
                    class="avatar-box-flot"
                    :class="{
                      'avatar-box-flot-style1': store.styleInfo.colorType == 1 && index == cruuent,
                      'avatar-box-flot-style2': store.styleInfo.colorType == 2 && index == cruuent,
                      'avatar-box-flot-style3': store.styleInfo.colorType == 3 && index == cruuent,
                    }"
                    :style="{ borderColor: colorList5[store.styleInfo.colorType - 1].fontColor }"
                  ></div>
                </div>
                <div class="box-list-item-title">
                  <span :style="{ color: index == cruuent ? '#fff' : '#333' }" class="box-list-item-title1">{{
                    item.text
                  }}</span>
                  <span
                    :style="{ color: index == cruuent ? 'rgba(255,255,255,0.5)' : 'rgba(63,77,79,0.5)' }"
                    class="box-list-item-title2"
                    v-html="getEnglish(item.text)"
                  ></span>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="right-boxs">
        <div class="right-top-remarks">
          <div class="heard-title-parent">
            <div class="heard-title">
              <span class="info-right-text1" :style="{ fontFamily: 'SourceHanSerifCN-Bold' }">{{
                store.childModel.children[cruuent].text
              }}</span>
              <span class="info-right-text2"></span>
              <span
                class="info-right-text3"
                :style="{ fontFamily: store.styleInfo.fontFamily }"
                v-html="getEnglish(store.childModel.children[cruuent].text)"
              ></span>
            </div>
          </div>
          <div class="subTitle" v-if="store.childModel.children[cruuent].subTitle">
            ——{{ store.childModel.children[cruuent].subTitle }}
          </div>
          <div class="heard-remarks">
            <textMax
              v-if="store.childModel.children[cruuent]?.remarks"
              :title="store.childModel.children[cruuent].text"
              color="#333"
              :data="store.childModel.children[cruuent]?.remarks"
              :modelData="childRemarks"
              :maxLen="3"
              :flag="false"
            />
          </div>

          <div
            id="Unit-child-child-case"
            class="Unit-child-child"
            v-if="store.childModel.children[cruuent].children.length > 0"
          >
            <div class="Unit-child-child-box" :style="{ transform: `translateX(-${370 * childCurrent}px)` }">
              <div
                @click="addExbitInfo(item)"
                class="Unit-child-child-box-item"
                v-for="(item, index) in store.childModel.children[cruuent].children"
                :key="index"
              >
                <div class="item-info">
                  <span class="info-name">{{ item.text }}</span>
                  <div class="info-item-remarkes">
                    <span>{{ item.remarks ? item.remarks : '暂无描述' }}</span>
                    <div @click="addExbitInfo(item)" class="center-flex">
                      <t-icon name="chevron-right" size="24"></t-icon>
                      <!-- <arrowRight iconSize="32px" color="#333" @click.stop="childCurrent = index + 1" /> -->
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="Unit-child-child-btn">
              <swiperdot
                size="10px"
                @click="childCurrent = index"
                :ischange="index === childCurrent"
                v-for="(item, index) in store.childModel.children[cruuent].children"
                :key="index"
              />
              <div style="margin-left: 16px">
                <arrowLeft iconSize="24px" color="#333" @click.stop="childIndexCruuent(1)" />
              </div>
              <div>
                <arrowRight iconSize="24px" color="#333" @click.stop="childIndexCruuent(2)" />
              </div>
            </div>
          </div>
          <div v-else>
            <div class="exbition-box">
              <div class="exbition-box-list">
                <div
                  class="exbition-box-item"
                  @click="pathInfo(item.id, item.moduleId)"
                  v-for="item in list"
                  :key="item.id"
                >
                  <t-image
                    fit="cover"
                    position="center"
                    class="exbition-box-item-img t-image--fit-contain t-image--position-center"
                    :src="$filters.getLinkUrl(item.coverUrl, '?imageView2/2/w/240/h/160/format/webp')"
                    alt=""
                  >
                    <template #error>
                      <imageNull />
                    </template>
                  </t-image>
                  <div
                    class="btm-box"
                    :style="{
                      background: colorList5[store.styleInfo.colorType - 1].themeColor,
                    }"
                  >
                    <span :style="{ fontFamily: store.styleInfo.fontFamily }">{{ item.name }}</span>
                  </div>
                </div>
              </div>
              <div
                v-if="list.length > 0"
                @click="(childModelShow = true), emit('pushTypeShow', false)"
                :style="{
                  fontFamily: store.styleInfo.fontFamily,
                  fontSize: store.styleInfo.mintitleSize,
                }"
                class="left-btn flex-c-c-c"
              >
                <div class="btn-box">
                  <calligraphyButton iconSize="48px" />
                </div>
                <span
                  :style="{
                    fontSize: store.styleInfo.mintitleSize,
                    color: '#fff',
                  }"
                  >查看全部</span
                >
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div v-else class="unit-exbit-box">
    <unitChildChildExhibit :info="ExbitChildInfo" />
  </div>
</template>

<script setup lang="ts">
// @ts-nocheck
import { ImgUrlCancat } from '@/utils/minxin';
import calligraphyButton from '../../components/calligraphyButton.vue';
import unitChildChildExhibit from './unitChildChildExhibit.vue';
import swiperdot from '../../components/swiperdot.vue';
import arrowLeft from '../../components/arrowLeft.vue';
import arrowRight from '../../components/arrowRight.vue';
import unitChildinfo from './unitChildinfo.vue';
import paginationPage from '../../components/paginationPage.vue';
import childInfo from './childInfo.vue';
import textMax from '../../components/textMax.vue';
import imageNull from '@/components/imageNull/index.vue';
import { getTextHtml, filterHTML, convertToPinyin } from '@/utils/minxin';
import { exhibitShowpiece } from '@/api/templates/templates';
import { colorList5 } from '../../../data';
import { pathList, pathListLoop } from '../../index';
import titles from '../../components/title.vue';
import { urls } from '@/utils/request/upload';
import { ref, reactive, computed, watch, nextTick, onMounted } from 'vue';
import { MessagePlugin } from 'tdesign-vue-next';
import { useRouter, useRoute } from 'vue-router';
import { useProjectStore } from '@/store';
import { moduleShowpieces } from '@/api/exhibit/exhibit';
import { storeToRefs } from 'pinia';
import UnitImageNull from '@/components/unitImageNull/unitImageNull.vue';

const emit = defineEmits(['pushTypeShow']);
const ExbitChildInfo = ref({
  id: 0,
  level: 0,
  number: 0,
  parentId: 0,
  remarks: '',
  showpieceTotal: 2,
  sort: 4,
  text: '',
  type: 11,
  value: '',
});
const route = useRoute();
const router = useRouter();
const childModelShow = ref(false);
const childCurrent = ref(0);
const store = useProjectStore();
const { childModel, template5Type } = storeToRefs(store);
const total = ref(0);
const remarks = ref('');
const childRemarks = ref('');
const cruuent = ref(0);
const exbitMarsk = ref('');
const loading = ref(false);
const clieWidths = ref(60);
const childList = ref([]);
const list = ref([]);
const parmas = reactive({
  pageSize: 4,
  pageNo: 1,
  id: 0,
  value: '',
});
const initList = async () => {
  try {
    parmas.id = ExbitChildInfo.value.id;
    let res = await moduleShowpieces(localStorage.getItem('projectId'), parmas);
    list.value = res.data.data;
    total.value = res.data.total;
    // console.log(total.value);
  } catch {}
};
initList();
remarks.value = getTextHtml(store.childModel?.remarks);
childRemarks.value = getTextHtml(store.childModel.children[cruuent]?.remarks);
const getEnglish = (e: string) => {
  let str: string = '';
  if (e.length > 4) {
    let strS = e.slice(0, 4);
    str = convertToPinyin(strS);
  } else {
    str = convertToPinyin(e);
  }
  return str;
};
const childIndexCruuent = (type: number) => {
  if (type == 1) {
    if (childCurrent.value == 0) {
      return;
    } else {
      childCurrent.value = childCurrent.value - 1;
    }
  } else {
    if (childCurrent.value < store.childModel.children[cruuent.value].children.length - 1) {
      childCurrent.value = childCurrent.value + 1;
    } else {
      return;
    }
  }
  //
  // store.childModel.children[cruuent].children
};
const pathInfo = (e?: number, moduleId?: number) => {
  router.push({
    name: route.meta.loopType ? pathListLoop[7] : pathList[7],
    query: { showpieceid: e, moduleId: parmas.id },
  });
  setTimeout(() => {
    const ele = document.getElementById('timeAxis-child-box-id'); // 获取元素
    const top = ele.offsetTop - 140; // 获取元素距离文档顶部的距离
    window.scrollTo({
      top: top,
      behavior: 'smooth', // 设置滚动的动画效果
    });
  }, 100);
};
const addExbitInfo = (info: any) => {
  const arr = info;
  ExbitChildInfo.value = arr;
  childModelShow.value = true;
  initList();
  emit('pushTypeShow', false);
};
const addExbitInfos = (info: any) => {
  const arr = info;
  ExbitChildInfo.value = arr;
  childModelShow.value = false;
  initList();
  emit('pushTypeShow', false);
  console.log('');
};
const GetchildList = () => {
  // childList.value = [];
  // let arry = [];
  // store.childModel.children.forEach((element, index) => {
  //   if (index !== 0) {
  //     arry.unshift(element);
  //   }
  // });
  // childList.value = arry.concat(store.childModel.children);
  // cruuent.value = childList.value.findIndex((el) => {
  //   return el.id === store.childModel.children[0].id;
  // });
  // console.log(cruuent.value);
};
const addCruuent = (index: number) => {
  cruuent.value = index;
};
const addCruuentType = (type: number) => {
  if (type === 1) {
    if (cruuent.value == 0) {
      return;
    } else {
      cruuent.value = cruuent.value - 1;
    }
  } else {
    if (cruuent.value == store.childModel.children.length - 1) {
      // cruuent.value = 0;
      return;
    } else {
      cruuent.value = cruuent.value + 1;
    }
  }
};
GetchildList();
cruuent.value = 0;
ExbitChildInfo.value = {
  id: 0,
  level: 0,
  number: 0,
  parentId: 0,
  remarks: '',
  showpieceTotal: 2,
  sort: 4,
  text: '',
  type: 11,
  value: '',
};
watch(
  () => childModel,
  () => {
    console.log('触发更新');

    emit('pushTypeShow', true);
    GetchildList();
    cruuent.value = 0;
    ExbitChildInfo.value = {
      id: 0,
      level: 0,
      number: 0,
      parentId: 0,
      remarks: '',
      showpieceTotal: 2,
      sort: 4,
      text: '',
      type: 11,
      value: '',
    };
    childCurrent.value = 0;
    childModelShow.value = false;
    remarks.value = getTextHtml(store.childModel?.remarks);
  },
  { deep: true },
);
watch(
  () => template5Type,
  () => {
    console.log('触发更新');
    cruuent.value = 0;
    ExbitChildInfo.value = {
      id: 0,
      level: 0,
      number: 0,
      parentId: 0,
      remarks: '',
      showpieceTotal: 2,
      sort: 4,
      text: '',
      type: 11,
      value: '',
    };
    childModelShow.value = false;
    emit('pushTypeShow', true);
    GetchildList();

    childCurrent.value = 0;
    remarks.value = getTextHtml(store.childModel?.remarks);
  },
  { deep: true },
);
if (store.childModel.children.length > cruuent.value && store.childModel.children[cruuent.value].children.length < 1) {
  nextTick(() => {
    ExbitChildInfo.value = store.childModel.children[cruuent.value];
  });
}

watch(
  cruuent,
  () => {
    if (
      store.childModel.children.length > cruuent.value &&
      store.childModel.children[cruuent.value].children.length < 1
    ) {
      nextTick(() => {
        console.log('触发更新--------------------');
        addExbitInfos(store.childModel.children[cruuent.value]);
      });
    }
    childRemarks.value = getTextHtml(store.childModel.children[cruuent.value]?.remarks);
  },
  { deep: true },
);

watch(
  () => childModelShow,
  () => {
    if (ExbitChildInfo.value !== 0) {
      setTimeout(() => {
        const ele = document.getElementById('timeAxis-child-box-id'); // 获取元素
        const top = ele.offsetTop - 210; // 获取元素距离文档顶部的距离
        console.log(top, '11111');
        window.scrollTo({
          top: top,
          //behavior: 'smooth', // 设置滚动的动画效果
        });
      }, 0);
    }
  },
  { deep: true },
);
</script>

<style lang="less" scoped>
@import '../../index.less';
.unit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  // min-width: 1440px;
}
.unit-exbit-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1180px;
  margin: 0 auto;
  margin-bottom: 80px;
}
.unit-exbit-title-box-left {
  display: flex;
  height: 90px;
  width: 1180px;
}
.unit-exbit-title-box-right-box {
  position: relative;
  width: 1180px;
  height: 320px;
  margin-top: 50px;
}

.unit-exbit-title-box-right,
.UnitImageNull {
  position: relative;
  z-index: 20;
  width: 1180px;
  height: 320px;
}
.unit-child-list {
  display: flex;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
  min-height: 918;
  padding-bottom: 150px;
  padding-top: 200px;
}
.background-img-style1 {
  background-image: url('https://static.jiyi.show/template/template5/unitChildBgc1.png');
}
.background-img-style2 {
  background-image: url('https://static.jiyi.show/template/template5/unitChildBgc2.png');
}
.background-img-style3 {
  background-image: url('https://static.jiyi.show/template/template5/unitChildBgc3.png');
}
.left-ring {
  position: relative;
  width: 800px;
  height: 800px;
  margin-left: -482px;
  .child-box3-left {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    width: 50px;
    height: 50px;
    transform: rotate(90deg);
  }
  .child-box3-right {
    position: absolute;
    bottom: 0;
    right: -68px;
    z-index: 10;
    width: 50px;
    height: 50px;
    transform: rotate(90deg);
  }
}
.left-ring-img {
  width: 800px;
  height: 800px;
  transition: all 0.5s;
}
.scroll-box {
  position: absolute;
  top: 0;
  z-index: 20;
  right: -224px;
  width: 542px;
  height: 800px;
  overflow: hidden;
}
.scroll-box-list {
  width: 542px;
  transition: all 0.5s;
}
.box-list-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 30;
  width: 282px;
  height: 160px;

  transition: all 0.5s;
}
.child-box-arrange0 {
  margin-left: -60px;
  opacity: 0.2;
}
.child-box-arrange1 {
  opacity: 0.4;
  margin-left: 120px;
}
.child-box-arrange2 {
  margin-left: 220px;
  opacity: 0.6;
}
.child-box-arrange3 {
  margin-left: 260px;
  opacity: 1;
}
.child-box-arrange4 {
  margin-left: 220px;
  opacity: 0.6;
}
.child-box-arrange5 {
  margin-left: 120px;
  opacity: 0.4;
}
.child-box-arrange6 {
  margin-left: -60px;
  opacity: 0.2;
}
.avatar-box-active {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  .avatar-box-flot {
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    box-shadow: 0px 0px 4px 0px rgba(151, 173, 177, 0.5);
    border: 1px solid #cbb995;
  }
  .avatar-box-flot-style1 {
    border: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(69, 46, 32, 0) 75%, rgba(69, 46, 32, 1) 99%);
  }
  .avatar-box-flot-style2 {
    border: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(
      90deg,
      rgba(140, 122, 87, 0) 75%,

      rgba(140, 122, 87, 1) 99%
    );
  }
  .avatar-box-flot-style3 {
    border: none;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(53, 60, 72, 0) 75%, rgba(53, 60, 72, 1) 99%);
  }
}
.box-list-item-title {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  width: 154px;
  margin-left: 20px;
  .box-list-item-title1 {
    font-size: 22px;
    font-family: SourceHanSerifCN-Bold, SourceHanSerifCN;
    color: #ffffff;
    line-height: 34px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .box-list-item-title2 {
    font-size: 10px;
    font-family: SourceHanSerifCN-Bold, SourceHanSerifCN;
    color: rgba(255, 255, 255, 0.5);
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.right-boxs {
  margin-left: 338px;
  flex: 1;
  margin-right: 130px;
  overflow: hidden;
}
.right-top-remarks {
  display: flex;
  flex-direction: column;
  min-width: 700px;
  width: calc(100% - 170px);
  // max-width: 1180px;
  // max-width: 913px;
}
.heard-title {
  display: flex;
  flex-direction: column;
}
.info-right-text1 {
  font-size: 22px;
  font-family: SourceHanSerifCN-Bold, SourceHanSerifCN;
  color: #333333;
  line-height: 34px;
}
.info-right-text2 {
  width: 100%;
  height: 1px;
  background: #333333;
  border-radius: 1px;
  // display: none;
}
.info-right-text3 {
  font-size: 10px;
  font-family: SourceHanSerifCN-Bold, SourceHanSerifCN;
  color: rgba(52, 52, 44, 0.5);
  line-height: 16px;
}
.heard-title-parent {
  display: flex;
}

.heard-remarks {
  position: relative;
  z-index: 29;
  width: 700px;
  height: 90px;
  font-size: 17px;
  font-family: SourceHanSerifCN-Medium, SourceHanSerifCN;
  color: #333333;
  line-height: 30px;
  margin-top: 32px;
  :deep(.van-text-ellipsis) {
    color: #333333;
  }
}
@media screen and (min-width: 1920px) {
  .heard-remarks {
    width: 1000px;
  }
}
.Unit-child-child {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: calc(100% + 160px);
  margin-top: 120px;
}
.Unit-child-child-box {
  position: relative;
  z-index: 10;
  display: flex;
  height: 215px;
  transition: all 0.5s;
}
.Unit-child-child-box-item {
  display: flex;

  height: 215px;
  width: 320px;
  margin-right: 50px;
}
.item-info {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 215px;
  width: 320px;
  border-bottom: 1px solid #333;
}
.info-name {
  font-size: 18px;
  font-family: SourceHanSerifCN-Bold, SourceHanSerifCN;
  color: #333333;
  line-height: 28px;
  margin-bottom: 35px;
}
.info-item-remarkes {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;

  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  color: rgba(51, 51, 51, 0.58);
  line-height: 30px;
  span {
    font-size: 16px;
    width: 238px;
    font-weight: 400;
    height: 90px;
    margin-right: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.Unit-child-child-btn {
  display: flex;
  margin-top: 50px;
}
.unit-exbit-box {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.box-list-item-active {
  position: relative;
  display: flex;
  align-items: center;
  width: 282px;
  height: 88px;
  border-radius: 44px;
}
.active-chage {
  position: absolute;
  top: 0;
  left: 0;
  width: 282px;
  height: 88px;
  border-radius: 44px;
}
.active-chage-border {
  position: absolute;
  z-index: 12;
  top: 4px;
  left: 4px;
  width: 274px;
  height: 80px;
  border-radius: 40px;
  border: 1px solid #cbb995;
}
.box-list-item-null {
  display: flex;
  align-items: center;
  width: 282px;
  height: 88px;
}
.exbition-box {
  position: relative;
  z-index: 30;
  margin-top: 80px;
}
.exbition-box-list {
  position: relative;
  z-index: 20;
  display: flex;
}
.exbition-box-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 240px;
  margin-right: 20px;
}

.exbition-box-item-img {
  width: 240px;
  height: 160px;
}
.btm-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 100%;
  padding: 8px 16px;

  span {
    font-size: 18px;
    font-family: SourceHanSerifCN-Medium, SourceHanSerifCN;
    // font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.left-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  width: 165px;
  height: 48px;
  margin-top: 50px;

  span {
    position: relative;
    z-index: 99;
    line-height: 24px;
    font-weight: 400;
  }
}
.btn-box {
  position: absolute;
  top: 0;
  left: 0;
}
.child-ot-null {
  opacity: 0.5;
}
.center-flex {
  display: flex;
  align-items: center;
}
.subTitle {
  color: #333;
  font-family: 'SourceHanSerifCN-medium';
  font-size: 20px;
  font-style: normal;

  line-height: 30px; /* 150% */
  margin-top: 8px;
}
@media screen and (max-height: 900px) {
  .right-top-remarks {
    min-width: 675px;
  }
  .right-boxs {
    min-width: 675px;
  }
  .heard-remarks {
    width: 675px;
  }
  .exbition-box-list {
    // height: 140px;
  }
  .exbition-box-item {
    width: 150px;
    margin-right: 18px;
  }
  .exbition-box-item-img {
    width: 150px;
    // height: 100px;
  }
}
@media screen and (max-width: 1440px) {
  .right-top-remarks {
    min-width: 675px;
  }
  .right-boxs {
    min-width: 675px;
  }
  .heard-remarks {
    width: 675px;
  }
  .exbition-box-list {
    // height: 140px;
  }
  .exbition-box-item {
    width: 150px;
    margin-right: 18px;
  }
  .exbition-box-item-img {
    width: 150px;
    // height: 100px;
  }
}
</style>
